/// @description 绘制 VIEW
// You can write your code in this editor

//如果显示
if(view_show)
{
	//绘制自己
	if(surface_exists(view_surface))
	{
		surface_set_target(view_surface);
		event_user(view_event_id[VIEW_EVE.DRAW]);
		surface_reset_target();
	}
	
	//综合绘制
	if(view_parent==noone)
	if(!view_is_gui)
	{
		sai_scrViewDraw();
		
		if(surface_exists(view_surface))
			draw_surface(view_surface, x, y);
	}
}
